import Vue from 'vue'
import VueRouter from 'vue-router'
import home from "./home"
import shop from "./shop"
import mine from "./mine"
import crowd from "./crowd"
import city from "./city"
import search from "./search"
import detail from "./detail"
import login from "./login"
import store from "@store/index.js"
import searchList from "./searchList"
Vue.use(VueRouter)


const routes = [
  {
    path:"/",
    redirect:"/home"
  },
  home,
  shop,
  mine,
  crowd,
  city,
  search,
  searchList,
  detail,
  login
]

const router = new VueRouter({
  routes
})

export default router
